package pers.zc.activiti.shejimoshi.guanchazhe.gcz3;

import lombok.Data;

/**
 * @description task实现类
 * @Author Lin FuYuan
 * @date 2020/1/7
 */
@Data
public class TaskImpl  implements Task {
    private Entity entity;
    public TaskImpl(Entity entity){
        this.entity = entity;
    }
    //修改
    @Override
    public void update() {
        if(!entity.getId().equals(entity.getId())){
            System.out.println("id不相同");
        }
        System.out.println("更新内容:");
        System.out.println(entity.getId()+"_"+entity.getStatus());
        System.out.println("**********后续**************");
//        if(this.entity.getId() .equals(entity.getId()) ){
//            this.entity = entity;
//        }
    }

    @Override
    public Entity get() {
        return entity;
    }


}
